Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add video support in Grid Bid Adapter #3545

Merged
merged 7 commits into from
Feb 19, 2019
Merged

Add video support in Grid Bid Adapter #3545

merged 7 commits into from
Feb 19, 2019

Conversation

TheMediaGrid
Copy link
Contributor

Type of change

  • Feature

Description of change

Added video support in Grid Bid Adapter

  • test parameters for validating video bids
{
  bidder: 'grid',
  params: {
    uid: 11
  }
}

} else {
bidResponse.ad = serverBid.adm;
bidResponse.mediaType = BANNER;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi this all looks great,

I have a question as to why when it is video there is no bidResponse.width or bidResponse.height added?

I see it is not sent or returned by your adserver.

You can see in the below screenshot that the KVP that gets set for the size turns out to be undefinedxundefined

image

I have a feeling this may cause problems for certain publishers ad servers maybe?

Do you think it is a good idea to set the width and height based on the bidRequest object?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width and height are required.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thank you for the catch, we have updated code, please review again.

}
}
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for good test parameters which return valid bid responses!

This is great.

'creativeId': 1,
'dealId': undefined,
'width': undefined,
'height': undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above question.

Is there a reason why the adapter does not just set these values?

@@ -163,6 +163,7 @@ describe('TheMediaGrid Adapter', function () {
'ad': '<div>test content 1</div>',
'bidderCode': 'grid',
'currency': 'USD',
'mediaType': 'banner',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for > 80% Test Coverage! 👍

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Great Stuff @TheMediaGrid !

@robertrmartinez robertrmartinez merged commit f45aa8a into prebid:master Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants